<div class="quarter first bg_greenyellow round_10 shadow_in_0">
    <ul class="rightmenu">
        <li><a href="<?php echo $this->url(array('action'=>'index','controller'=>'users','module'=>'admin'),null,true); ?>">Powrót</a></li>
    
    </ul>

</div>

<div class="threequarter  last fixed ">
    
    
     
    
    <h6 class ="round_5 shadow_out_4 bg_mediumblue"><? echo 'Informacje o użytkowniku'?></h6>
    <br /> 
    
<table class="datalist" width="75%">
   <caption>
       Szczegóły
   </caption>
   <thead>
      <tr>
         <th colspan="2">&nbsp;</th>
      </tr>
   </thead>
   <tfoot>
      <tr>
         <th>&nbsp;</th>
         <th>&nbsp;</th>
      </tr>
   </tfoot>
   <tbody>
       <tr>
           <td style="width: 30%">Login</td>
           <td style="width: 70%"><?php echo $this->user->getLogin();?></td>
       </tr>
       <tr>
           <td>Rola</td>
           <td>
            <?php if($this->user->getRole() == 'admin'){
                    echo 'Administrator';
                  } else {
                    echo 'Użytkownik';
                  }
            ?>
           </td>
       </tr>
       <tr>
           <td>Imie</td>
           <td><?php echo $this->user->getName().' '.$this->user->getName2();?></td>
       </tr>
       <tr>
           <td>Nazwisko</td>
           <td><?php echo $this->user->getSurname();?></td>
       </tr>
       <tr>
           <td>e-mail</td>
           <td><?php echo $this->user->getEmail();?></td>
       </tr>
       <tr>
           <td>Adres</td>
           <td><?php echo $this->user->addressString($this->user->getAddress()); ?></td>
       </tr>

   </tbody>
    
</table>
<br /> 
<?php if($this->user->getRole() == 'user'){?>
<h6 class ="round_5 shadow_out_4 bg_mediumblue">Edytuj</h6>
<br />     
<?php echo $this->form;?>
<br />
<h6 class ="round_5 shadow_out_4 bg_mediumblue">Awansuj na administratora</h6>
<br />     
<a class="styled_button grey view_button" href='<?php echo $this->url(array('action'=>'promote','controller'=>'users','module'=>'admin','id'=>$this->user->getLogin()),null,true); ?>'>Awans</a>
<br />
<? }?>    
    
</div>